﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMS.Model
{
    [SugarTable("UserRole")]
    public class UserRoleModel : BaseModel
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [SugarColumn(ColumnName = "UserId", IsNullable = false)]
        public long UserId { get; set; }

        /// <summary>
        /// 角色ID
        /// </summary>
        [SugarColumn(ColumnName = "RoleId", IsNullable = false)]
        public long RoleId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateTime", DefaultValue = "GETDATE()")]
        public DateTime? CreateTime { get; set; } = DateTime.Now;

    }

    public class UserRoleModelDTO 
    {
        public int IsBand { get; set; }

        public long RoleId { get; set; }

        public List<long> UserIds { get; set; }

    }

}
